package com.jy.modules.cims.data.dao;

import java.util.List;
import java.util.Map;

import com.jy.modules.cims.data.common.dto.TCMmCostAffiliationDTO;
import com.jy.modules.cims.data.common.dto.TCMmCreditDealDetailDTO;
import com.jy.modules.cims.data.dto.DealDetailByCreditDto;
import com.jy.modules.cims.data.dto.DealDto;
import com.jy.platform.core.mybatis.MyBatisRepository;

/**
 * 
 * @author zhiqiang 自定义操作贷款的持久层接口
 * 
 */
@MyBatisRepository
public interface CreditDealDetailDao {

	public TCMmCreditDealDetailDTO getMaxSettleApplyId(String dealCode);
	
	public void updateCreditDealDetailSettleApply(Map<String, Object> searchParams);
	
	public List<DealDetailByCreditDto> getWaitSettleApplyCodes(Map<String, Object> searchParams);
	
	public void updateCreditDealCostStateByApplyCode(Map<String, Object> searchParams);
	
	public void updateLoanDealCostStateByApplyCode(Map<String, Object> searchParams);
	
	public void updateLoanCostStateByApplyCode(Map<String, Object> searchParams);
	
	public void updateCreditDealRepayAffiliation(Map<String, Object> searchParams);
	
	public void updateRepayAffiliationForEach(Map<String, Object> searchParams);
	
	public List<DealDto> searchCooperorgDealCostState(Map<String, Object> searchParams);
	
	public void updateCooperorgDealCostState(Map<String, Object> searchParams);
	
	public List<DealDto>  getAffiliationByDealCode(Map<String, Object> searchParams);
	
	public List<TCMmCostAffiliationDTO> getCostAffiliationByDealCode(Map<String, Object> searchParams);
	
	public void updateLoanBuybackDealDetailSettleApply(Map<String, Object> searchParams);
	
	public void updateLoanBuybackDetailCreditSettleApply(Map<String, Object> searchParams);
	
}